package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.LawsuitHisDO;
import com.mhc.suzuki.dal.query.LawsuitHisQuery;

import java.util.List;


/**
 * Manager for LawsuitHis.
 */
public interface LawsuitHisManager {
    /**
     * query count by query condition.
     */
    int countByQuery(LawsuitHisQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(LawsuitHisQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(LawsuitHisDO record);

    /**
     * insert selective.
     */
    long insertSelective(LawsuitHisDO record);

    /**
     * select by query condition.
     */
    List<LawsuitHisDO> selectByQuery(LawsuitHisQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<LawsuitHisDO> selectByQueryWithPage(LawsuitHisQuery query);

    /**
     * select by primary key.
     */
    LawsuitHisDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( LawsuitHisDO record,  LawsuitHisQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(LawsuitHisDO record, LawsuitHisQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(LawsuitHisDO record);
}